import {defineStore} from 'pinia';

export const useFriendsStore = defineStore('useFriendsStore', {
    state() {
        return {
            friendList: [],
            messageHistoryList: []
        }
    },
    getters: {
        getMessageHistoryList(state) {
            return state.messageHistoryList
        }
    },
    actions: {
        setFriendList(list) {
            this.friendList = list
        },
        setMessageHistoryList(list) {
            this.messageHistoryList = list
        }
    }
})